﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;

namespace ChequeManagement.Validation
{
    class EmailValidator : IValidationStrategy
    {
        public bool IsValid(string mail)
        {
            try
            {
                string address = new MailAddress(mail).Address;
                return true;
            }
            catch (Exception)
            {
                return false;
            }

        }
    }
}
